package com.tomcov.client.view;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.HasClickHandlers;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.AbsolutePanel;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.InsertPanel.ForIsWidget;
import com.google.gwt.user.client.ui.ListBox;
import com.google.gwt.user.client.ui.PasswordTextBox;
import com.google.gwt.user.client.ui.SuggestBox;
import com.google.gwt.user.client.ui.TextBox;

public class CreatUserViewImpl extends Composite implements CreatUserView{
	
	@SuppressWarnings("unused")
	private Presenter presenter;
	private static final MyUiBinder binder = GWT.create(MyUiBinder.class);
	interface MyUiBinder extends UiBinder<AbsolutePanel, CreatUserViewImpl> {
	}
	
	@UiField Button NextButton;
	@UiField TextBox FirstName,LastName,userName,EmailAdress;
	@UiField PasswordTextBox Password;
	@UiField ListBox langageList;
	
	public CreatUserViewImpl(){
		initWidget(binder.createAndBindUi(this));
	}
	
	@Override
	public void setPresenter(Presenter presenter) {
		this.presenter=presenter;
	}

	@Override
	public HasClickHandlers getNextButton() {
		return NextButton;
	}

	@Override
	public String getAdressEmail() {
		return EmailAdress.getText();
	}

	@Override
	public String getUserName() {
		return userName.getText();
	}

	@Override
	public String getPassword() {
		return Password.getText();
	}

	@Override
	public String getLastName() {
		return LastName.getText();
	}

	@Override
	public String getFirstName() {
		return FirstName.getText();
	}
	
	public ListBox	 getlangageSuggest(){
		return langageList;
	}
	
	

}
